public class Example07 {
    public static void main(String[] args){
        int x =5;
        if (x<10){
            x++;
        }
        System.out.println("x="+x);
    }

    public static class Example08 {
        public static void mian(String[] args){
            int num = 19;
            if (num%2==0) {
                //判断条件成立，num被2整除
                System.out.println("num是一个偶数");
            }else {
                System.out.println("num是一个奇数");
            }
        }
    }
}
